var myChart = echarts.init(document.getElementById("idx1"))
var option = {
    xAxis: {
        name: '日期',
        type: 'category',
        data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
    },
    yAxis: {
        name: '销售量',
        type: 'value',
        // data: [10,20,30,40],
    },
    title: {
        text: 'XX销量--zzf',
        left: 'center',
    },
    series:{
        type:'line',
        data:[35,42,18,26,39,5,40],
        label: {
            show: true,
        },
    },
};
myChart.setOption(option)
//---------------------------------------------------
var myChart2 = echarts.init(document.getElementById("idx2"))
var option2 = {
    xAxis: {
        name: '日期',
        type: 'category',
        data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
    },
    yAxis: {
        name: '销售量',
        type: 'value',
        // data: [10,20,30,40],
    },
    title: {
        text: 'XX销量--zzf',
        left: 'center',
    },
    legend: {
        top: 'bottom',
    },
    series:[{
        type:'line',
        name: '馒头',
        smooth: true,
        data:[4,2,3,8,5],
    },{
        type:'line',
        name: '包子',
        smooth: true,
        data:[7,4,2,9,8],
    },{
        type:'line',
        name: '烧饼',
        smooth: true,
        data:[1,3,5,4,7],
    }],
};
myChart2.setOption(option2)
//---------------------------------------------------
var myChart3 = echarts.init(document.getElementById("idx3"))
var option3 = {
    xAxis: {
        name: '日期',
        type: 'category',
        data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
    },
    yAxis: {
        name: '销售量',
        type: 'value',
        // data: [10,20,30,40],
    },
    
    title: {
        text: 'XX销量--zzf',
        left: 'center',
    },
    legend: {
        top: 'bottom',
    },
    series:[{
        type:'line',
        name: '馒头',
        smooth: true,
        data:[10,13,15,14,17],
        areaStyle: {},
        stack: '总量',
    },{
        type:'line',
        name: '包子',
        smooth: true,
        data:[7,4,5,9,8],
        areaStyle: {},
        stack: '总量',
    },{
        type:'line',
        name: '烧饼',
        smooth: true,
        data:[4,2,3,8,5],
        areaStyle: {},
        stack: '总量',
    }],
};
myChart3.setOption(option3)
//---------------------------------------------------
var myChart4 = echarts.init(document.getElementById("idx4"))
var option4 = {
    xAxis: {
        name: '日期',
        type: 'category',
        data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
    },
    yAxis: {
        name: '销售量',
        type: 'value',
        // data: [10,20,30,40],
    },
    title: {
        text: 'XX销量--zzf',
        left: 'center',
    },
    legend: {
        top: 'bottom',
    },
    tooltip: {
        trigger: 'axis',
    },
    series:[{
        type:'line',
        name: '馒头',
        smooth: true,
        data:[10,13,15,14,17],
        areaStyle: {},
        stack: '总量',
    },{
        type:'line',
        name: '包子',
        smooth: true,
        data:[7,4,5,9,8],
        areaStyle: {},
        stack: '总量',
    },{
        type:'line',
        name: '烧饼',
        smooth: true,
        data:[4,2,3,8,5],
        areaStyle: {},
        stack: '总量',
    }],
};
myChart4.setOption(option4)
//---------------------------------------------------
var myChart5 = echarts.init(document.getElementById("idx5"))
var option5 = {
    xAxis: {
        name: '日期',
        type: 'category',
        data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
    },
    yAxis: {
        name: '销售量',
        type: 'value',
        // data: [10,20,30,40],
    },
    title: {
        text: 'XX销量--zzf',
        left: 'center',
    },
    legend: {
        top: 'bottom',
    },
    tooltip: {
        trigger: 'axis',
    },
    series:[{
        type:'scatter',
        name: '馒头',
        data:[10,13,15,14,17],
    },{
        type:'line',
        name: '包子',
        smooth: true,
        data:[7,4,5,9,8],
    },{
        type:'bar',
        name: '烧饼',
        data:[4,2,3,8,5],
    }],
};
myChart5.setOption(option5)